package com.ruoyi.room.controller;


import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.room.service.ITbBuildingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 楼盘表 前端控制器
 * </p>
 *
 * @author author
 * @since 2024-08-29
 */
@RestController
@RequestMapping("/building/")
public class TbBuildingController {

    @Autowired
    ITbBuildingService buildingService;
    @GetMapping("getBuildingAll")
    public AjaxResult getBuildingAll(){
        return AjaxResult.success(buildingService.list());
    }

}
